package thread;

import java.util.Random;

public class MyThread02 extends Thread {
	boolean status = false;
	
	@Override
	public void run(){
		status = true;
		Random rnd  = new Random();
		while(status){
			int n = rnd.nextInt(100);
			System.out.println("난수:"+n);
		}
			
	}
	
	public void stopThread(){
		status = false;
	} 
}

	